from django.conf.urls.defaults import *

urlpatterns = patterns('movie.vote.views',
  (r'^$', 'index'),
  (r'^(?P<output>json|xml)/$', 'index'),
  (r'^update_tallies/$', 'update_tallies'),
  (r'^voters/(?P<movie_name>[^/]+)/$', 'voters'),
  (r'^plusvote/(?P<movie_name>[^/]+)/$', 'plus_vote'),
  (r'^minusvote/(?P<movie_name>[^/]+)/$', 'minus_vote'),
  (r'^plusvote/(?P<output>json|xml)/(?P<movie_name>[^/]+)/$', 'plus_vote'),
  (r'^minusvote/(?P<output>json|xml)/(?P<movie_name>[^/]+)/$', 'minus_vote'),
)
